package com.im.dynamic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.im.dynamic.entity.Post;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * User: key
 * ClassName:PostMapper
 * Date: 2023/7/12
 * Time: 16:31
 * description:
 */
@Mapper
public interface PostMapper extends BaseMapper<Post> {
    @Select("select * from i_post where u_id = #{id}")
    List<Post> getByUserId(Long id);
}
